<script setup>

import router from "@/router/index.js";

defineProps({
  title: String,
  color: String,
  url: {}
});
</script>

<template>

  <div class = "Header d-flex">
    <div class = "icon" @click = "router.push(url)">
      <svg t = "1738806608812" class = "icon" viewBox = "0 0 1024 1024" version = "1.1"
           xmlns = "http://www.w3.org/2000/svg" p-id = "4175" width = "32" height = "32">
        <path
            d = "M461.994667 512l211.2 211.2-60.330667 60.373333L341.333333 512l271.530667-271.530667 60.330667 60.330667-211.2 211.2z"
            fill = "#000000" p-id = "4176"></path>
      </svg>
    </div>
    <div class = "title ">
      {{ title }}
    </div>
  </div>

</template>

<style scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.Header {
  width: 100%;
  margin: auto;
}

.title {
  font-size: 20px;
  line-height: 32px;
  width: 84%;
  text-align: center;
  max-width: 84%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon {
  cursor: pointer;
  width: 30px;
}
</style>